/**
 * 
 */
package org.chungyan5.lib.android.gcal;

import android.database.Cursor;
import android.database.CursorWrapper;

/**
 * @author yan
 *
 */
public class GCalList extends CursorWrapper {

	public GCalList(Cursor cursor) {
		super(cursor);
	}

	/**
	 * already execute nextObject() before this method 
	 * @return a object of GCal
	 */
	public GCal getRecord() {
		
		GCal gCal = new GCal();
		
		gCal.setId(this.getString(GoogleCalendarAPI.CALENDAR_ID_CURSOR_POS));  
		gCal.setDisplay_name(this.getString(GoogleCalendarAPI.CALENDAR_DISPLAY_NAME_CURSOR_POS));
		
		return gCal;
	}
}
